package com.yunchang.springboot.models.database.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 数据库基础表
 * </p>
 *
 * @author ldw
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_database")
@ApiModel(value = "BaseDatabaseDTO对象", description = "数据库基础表")
public class BaseDatabaseDTO extends Model<BaseDatabaseDTO> {

    private static final long serialVersionUID = 1L;

    @TableField
    private Integer id;

    @ApiModelProperty(value = "数据库节点名称")
    private String databaseName;

    @ApiModelProperty(value = "数据库URL")
    private String url;

    @ApiModelProperty(value = "数据库类型")
    private String databaseType;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "创建人 ID")
    private Long addUser;

    @ApiModelProperty(value = "创建时间")
    private String addTime;

    @ApiModelProperty(value = "修改人 ID")
    private Long modUser;

    @ApiModelProperty(value = "修改时间")
    private String modTime;

    @ApiModelProperty(value = "排序字段，注意是整型")
    private String orderTag;

    @ApiModelProperty(value = "删除标识，0-正常，1-删除")
    private Integer delFlag;

    @ApiModelProperty(value = "备注信息")
    private String remarks;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
